﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Newsletter.ascx.cs"
    Inherits="eCommerce.Site.Controls.Newsletter" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <div class="newsletbx">
            <asp:TextBox ID="txbName" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                ControlToValidate="txbName" CssClass="yell" ValidationGroup="frmSubmitN"></asp:RequiredFieldValidator>
        </div>
        <div class="newsletbx">
            <asp:TextBox ID="txbEmail" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*"
                ControlToValidate="txbEmail" CssClass="yell" ValidationGroup="frmSubmitN"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator CssClass="yell" ID="RegularExpressionValidatorEmailAdd"
                runat="server" ControlToValidate="txbemail" ValidationGroup="frmSubmitN" ErrorMessage="valid email address!"
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
        </div>
        <asp:LinkButton ID="lnkbtnAdd" CssClass="btnClickBR" ValidationGroup="frmSubmitN"
            runat="server" OnClick="lnkbtnAdd_Click">register now</asp:LinkButton>
        <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" TargetControlID="txbname"
            WatermarkCssClass="memeberbx" WatermarkText="Your Full Name" runat="server">
        </cc1:TextBoxWatermarkExtender>
        <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" TargetControlID="txbEmail"
            WatermarkCssClass="memeberbx" WatermarkText="Your Email Address" runat="server">
        </cc1:TextBoxWatermarkExtender>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="lnkbtnAdd" />
    </Triggers>
</asp:UpdatePanel>
